﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="estudent.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Iskanje študenta
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JQueryContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#vpisna").keyup(function () {
                $.post("IskanjeStudent/Poisci", $("#iskanjeFormular").serialize(), function (data) {
                    $("#studenti").html(data);
                });
            });

            $("#ime").keyup(function () {
                $.post("IskanjeStudent/Poisci", $("#iskanjeFormular").serialize(), function (data) {
                    $("#studenti").html(data);
                });
            });

            $("#priimek").keyup(function () {
                $.post("IskanjeStudent/Poisci", $("#iskanjeFormular").serialize(), function (data) {
                    $("#studenti").html(data);
                });
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRightContent" runat="server">
    <h1>
        Vnos s prijavnice</h1>
    <form action="/IskanjeStudent/Poisci" method="post" name="iskanjeFormular" id="iskanjeFormular">
    ISKANJE ŠTUDENTA ZA VNOS OCENE Z VPISNICE<br />
    <br />
    <table border="1">
        <tr>
            <td>
                <label>
                    Vpisna številka :</label>
            </td>
            <td>
                <input name="vpisna" id="vpisna" type="text" title="Tukaj vpišite vpisno številko iskanega študenta" />
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    Ime študenta :</label>
            </td>
            <td>
                <input name="ime" id="ime" type="text" title="Tukaj vpišite ime iskanega študenta" />
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    Priimek študenta :</label>
            </td>
            <td>
                <input name="priimek" id="priimek" type="text" title="Tukaj vpišite priimek iskanega študenta" />
            </td>
        </tr>
    </table>
    <% =Html.Hidden("namen",ViewData["namen"]) %>
    <!--<input name="isci" id="isci" type="submit" value="Poi&scaron;&#269;i &scaron;tudenta" />!-->
    </form>
    <br />
    <br />
    <div id="iskaniStudentiDiv">
        REZULTATI ISKANJA<br />
        <table border="1" id="studenti">
        </table>
    </div>
</asp:Content>
